<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<include file="public:meta" />
	<link href="../public/css/members/common.css" rel="stylesheet" type="text/css" />
	<link href="../public/css/personal/personal_ajax_dialog.css" rel="stylesheet" type="text/css" />	
</head>
<body>
	<include file="header" />
	<div class="reg_per">
		<div class="rl J_focus">
			<div class="switch_title link_blue"><a href="{:U('members/register',array('utype'=>1))}">切换为企业注册>></a></div>
			<div class="clear"></div>
			<div class="tabshow" style="display:block">
				<form class="J_passwordalert_group" id="regMobileForm" action="{:U('members/register')}" method="post" onkeydown="if(event.keyCode==13){return false;}">
					<input type="hidden" name="incode" value="{$Think.get.incode}">
					<div class="J_validate_group">
						<div class="td1">
							<input class="input_295_34" name="mobile" id="mobile" type="text" placeholder="请输入手机号码" autocomplete="off" />
						</div>
						<div class="td2 J_showtip_box"></div>
						<div class="clear"></div>
					</div>
					<div class="J_validate_group had-remind">
						<div class="radio_list fl J_radioitme_parent">
							<div class="rli J_radioitme" data-code="1" style="width: 480px;float: none;margin-bottom: 5px;">解绑手机号<span style="color: #FF0000;">（该手机号已被其它账号绑定，选择此项将会解除其它账号绑定）</span></div>
							<div class="rli J_radioitme" data-code="2" style="width: 80px;float: none;margin-bottom: 5px;" id="J_change_mobile">更换手机号</div>
							<div class="rli J_radioitme" data-code="3" style="width: 100px;float: none;" id="J_login">用此手机号登录</div>
							<input class="J_radioitme_code" name="unbind_mobile" id="unbind_mobile" type="hidden" value="0"/>
						</div>
					</div>
					<div class="J_validate_group">
						<div class="td1">
							<div class="code">
								<input class="input_295_34" name="mobile_vcode" id="mobile_vcode" type="text" placeholder="请输入短信验证码" autocomplete="off" />
							</div>
							<div class="codebtn">
								<input type="button" class="btn_yellow J_hoverbut" id="J_getverificode" value="获取验证码" />
								<div id="popup-captcha"></div>
								<input type="hidden" id="btnCheck" />
							</div>
							<div class="clear"></div>
						</div>
						<div class="td2 J_showtip_box"></div>
						<div class="clear"></div>
					</div>
					<div class="J_validate_group">
						<div class="td1">
							<input class="input_295_34 J_passwordalert" name="mobilepassword" id="mobilepassword" type="password" placeholder="请输入账户密码" autocomplete="off" />
						</div>
						<div class="td2 J_showtip_box"></div>
						<div class="clear"></div>
					</div>
					<div class="safety">
						<div class="slist t1">危险</div>
						<div class="slist t2">一般</div>
						<div class="slist t3">安全</div>
						<div class="clear"></div>
					</div>
					<div class="J_validate_group">
						<div class="td1">
							<input name="mobilepasswordVerify" type="password"  class="input_295_34" placeholder="请确认账户密码" autocomplete="off" />
						</div>
						<div class="td2 J_showtip_box"></div>
						<div class="clear"></div>
					</div>
					<div class="agreement link_blue"><label><input class="J_agreement_per" name="agreement" type="checkbox" value="1" checked="checked" />
					我已阅读并同意<a href="javascript:;" class="J_reg_agreement">《{:C('qscms_site_name')}用户服务协议》</a></label></div>
					<input type="hidden" name="reg_type" value="1" />
					<input type="hidden" name="utype" value="2">
					<div class="btnbox"><input id="btnMoilbPhoneRegister" type="submit" value="注册" class="btn_reg J_hoverbut" /></div>
					<div id="popup-captcha-mobile"></div>
					<input type="hidden" id="btnCheckMobile" />
                    <input type="hidden" name="geetest_challenge" class="J_gee_cha" value="">
                    <input type="hidden" name="geetest_validate" class="J_gee_val" value="">
                    <input type="hidden" name="geetest_seccode" class="J_gee_sec" value="">
				</form>
			</div>
		</div>
		<div class="rr">
			
			<div class="tittxt">已经有{:C('qscms_site_name')}账号:</div>
				
				<div class="logintxt"><a href="{:U('members/login')}" class=" J_hoverbut btn_blue btn_inline">直接登录</a></div>
				<div class="tittxt">使用以下帐号直接登录:</div>
				
				<div class="loginappimg">
					<volist name="oauth_list" id="oauth">
				  		<a href="{:U('callback/index',array('mod'=>$key,'type'=>'login'))}" class="imgli {$key} J_hoverbut" title="{$oauth.name}账号登录">&nbsp;</a>
			  		</volist>
				  <div class="clear"></div>
				  </div>
		</div>
		<div class="clear"></div>
	</div>
	<input type="hidden" id="J_captcha_open" value="{:C('qscms_captcha_open')}" />
    <input type="hidden" id="J_captcha_varify_send" value="{:C('qscms_captcha_config.varify_mobile')}" />
	<!--下方阴影 -->
	<div class="reg_per_bg">
		<div class="bl"></div>
		<div class="br"></div>
		<div class="clear"></div>
	</div>
	<qscms:text 列表名="agreement" 类型="agreement" />
	<include file="public:footer_min" />
	<script type="text/javascript" src="../public/js/jquery.form.js"></script>
	<script type="text/javascript" src="../public/js/jquery.validate.js"></script>
	<script type="text/javascript" src="../public/js/members/jquery.pwdalert.js"></script>
	<script type="text/javascript" src="../public/js/members/jquery.validate.regpersonal.js"></script>
	<script type="text/javascript" src="../public/js/jquery.modal.dialog.js"></script>
	<script type="text/javascript" src="../public/js/emailAutoComplete.js"></script>
	<script src="http://static.geetest.com/static/tools/gt.js"></script>
	<script src="../public/js/members/jquery.common.js" type="text/javascript" language="javascript"></script>
	<script src="../public/js/jquery.listitem.js" type="text/javascript"></script>
	<script type="text/javascript">
	  	// 默认第一项获得焦点
		$('#mobile').focus().addClass('input_focus');

		//注册协议弹框
	  	$(".J_reg_agreement").click(function(){
			var qsDialog = $(this).dialog({
        		title: "{:C('qscms_site_name')}注册协议",
				backdrop: false
			});
			$.getJSON("{:U('Home/Members/agreement')}",function(result){
				if(result.status==1){
					qsDialog.setContent(result.data);
				}
			});
		});

		// 是否同意注册协议
		$('.J_agreement_per').die().live('click', function() {
			if ($(this).is(':checked')) {
				$(this).closest('.tabshow').find('.btn_reg').prop('disabled', 0).removeClass('btn_disabled');
			} else {
				$(this).closest('.tabshow').find('.btn_reg').prop('disabled', !0).addClass('btn_disabled');
			}
		})
	</script>
</body>
</html>